package com.java.excend.test_2;

/**
 * @author luzhikun
 * @date 2020/12/4- 21:12
 */
public class Circle extends GeometricObject {
    private double radius;

    public Circle() {

    }

    public Circle(double radius) {
        this.radius = radius;
    }

    public Circle(String color, double weight, double radius) {
        super(color, weight);
        this.radius = radius;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    //求圆的体积
    public double findArea() {
        return Math.PI * radius * radius;
    }
}
